package com.huan.springcloud.service;

import com.huan.springcloud.dao.DeptDao;
import com.huan.springcloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者： huan~
 *
 * @Date 2022-04-05 19:50
 * @Description
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept)
    {
        return deptDao.addDept(dept);
    }

    @Override
    public Dept queryById(Long id)
    {
        return deptDao.queryById(id);
    }

    @Override
    public List<Dept> queryAll()
    {
        return deptDao.queryAll();
    }
}